package org.hu.flexeasy.components
{
	import flash.display.CapsStyle;
	import flash.display.Graphics;
	import flash.display.LineScaleMode;
	import flash.events.Event;
	import flash.events.MouseEvent;
	
	import mx.controls.Alert;
	
	import org.hu.flexeasy.util.Utils;
	
	import spark.components.SkinnableContainer;
	
	public class SkinContainer extends SkinnableContainer 
	{		
		public var borderSides:String="all";
		public var backgroupColor:uint = 0;
		public var borderColor:uint = 0xB5B8C8;		
		
		public function SkinContainer()
		{
			super();			
		}
		
		override protected function measure():void
		{
			super.measure();
			measuredHeight = 22;
			measuredWidth = 22;
		}
		
		override protected function createChildren():void
		{
			super.createChildren();
		}
		
		override protected function updateDisplayList(w:Number, h:Number):void
		{
			super.updateDisplayList(w, h);

			var g:Graphics=graphics;
			graphics.clear();

			Utils.drawBackgroup(backgroupColor,g,w,h);			
			g.lineStyle(1, borderColor);
			Utils.drawBorder(Utils.lineSides(this.borderSides),g,w,h);
		}

	}
}